// src/api/career.js
import request from '@/utils/request'

// 获取职业类别
export function getCareerTypes() {
  return request({
    url: '/api/career/types',
    method: 'get'
  })
}

// 根据类别获取职业列表
export function getCareersByType(typeCode) {
  return request({
    url: '/api/career/list',
    method: 'get',
    params: { typeCode }
  })
}

// 获取职业分析数据
export function analyzeCareer(careerCode) {
  return request({
    url: '/api/career/analyze',
    method: 'get',
    params: { careerCode }
  })
}